<template>
    <div>



  <el-input v-model="txt123" placeholder="txt" size="default" clearable style="width: 300px;"></el-input>

  <el-button type="primary" size="default" @click="send2parent">发送</el-button>
  
  
    </div>
</template>

<script>
    export default {
        name: "CustomInput",
        data(){
            return{
                txt123:''
            }
        },
        methods:{
            send2parent(){
                console.log('--evt--send2parent-------------value:',this.txt123)
                this.$emit('receiveCustomInputVar',this.txt123)
            }
        }


    }
</script>

<style scoped>

</style>